#FROM python:3.8-alpine
FROM python:3.8-slim
#RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
#RUN apk add gcc
RUN apt-get install g++ 
WORKDIR /app
ARG WORKDIR=/app
COPY  requirements.txt ${WORKDIR}/
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN sed -i s/deb.debian.org/mirrors.163.com/ /etc/apt/sources.list
RUN apt-get update && apt-get install -y gcc
RUN pip install uwsgi -i https://pypi.tuna.tsinghua.edu.cn/simple
COPY . ${WORKDIR}/
COPY static/dist /app/dist

